package org.tabularium.text.html;

/**
 * The base class for the 'Visitor' pattern.
 *
 */
public class Visitor {

	/** 
	 * Override this method if you wish to do special processing prior to the start of parsing.
	 */
	 public void beginParsing() {
		 
	 }



	 /** 
	  * Override this method if you wish to do special processing upon completion of parsing.
	  */
	 public void finishedParsing() {
		 
	 }


	 /**
	  * Depth traversal predicate.
	  */
	 public boolean shouldRecurseChildren() {
		 return true;
	 }



	 /**
	  * Called for each Tag visited.
	  * @param tag
	  */
	 public void visitTag(HypertextUnit u) {
		 
	 }
	          
}
